/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.university.entity;

import javax.validation.constraints.NotNull;
import org.hibernate.validator.constraints.Length;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 专业类别Entity
 * @author 朱俊吉
 * @version 2017-12-08
 */
public class MajorCategory extends DataEntity<MajorCategory> {
	
	private static final long serialVersionUID = 1L;
	private XueLiLevel xueLiLevel;		// 学历层次
	private DisciplineFields disciplineFields;		// 学科门类
	private Integer sequence;		// 序号
	private String name;		// 专业类别
	
	public MajorCategory() {
		super();
	}

	public MajorCategory(String id){
		super(id);
	}
	
	@NotNull(message="学历层次不能为空")
	public XueLiLevel getXueLiLevel() {
		return xueLiLevel;
	}

	public void setXueLiLevel(XueLiLevel xueLiLevel) {
		this.xueLiLevel = xueLiLevel;
	}

	@NotNull(message="学科门类不能为空")
	public DisciplineFields getDisciplineFields() {
		return disciplineFields;
	}

	public void setDisciplineFields(DisciplineFields disciplineFields) {
		this.disciplineFields = disciplineFields;
	}
	
	@NotNull(message="序号不能为空")
	public Integer getSequence() {
		return sequence;
	}

	public void setSequence(Integer sequence) {
		this.sequence = sequence;
	}
	
	@Length(min=1, max=255, message="专业类别长度必须介于 1 和 255 之间")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
}